// 兼容ie11 core-js
import 'core-js/stable'

import 'moment/locale/zh-cn'
import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import { setupGlobDirectives } from '@/setup/directives'
import { setupGlobalMethods } from '@/setup/methods'
import { setupGlobalComponents } from '@/setup/components'
import { setupGlobFilter } from '@/setup/filter'
// antd
import Antd from 'ant-design-vue'
// 引入默认样式
import '@/assets/styles/base.less'
// import Spline from 'vue-spline'
// Vue.component('Spline', Spline)
// 注册公共自定义指令
setupGlobDirectives(Vue)
// 注册全局方法，如： Vue.config.$config = config
setupGlobalMethods(Vue)
// 注册全局自定义组件
setupGlobalComponents(Vue)
// 注册全局过滤器
setupGlobFilter(Vue)

Vue.use(Antd)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
